home *** CD-ROM | disk | FTP | other *** search
- Path: the-fly.zip.com.au!brister
- From: brister@zip.com.au (James Brister)
- Newsgroups: comp.lang.c++
- Subject: Re: HELP !!(RAISE A NUMBER TO A NEGATIVE POWER)
- Date: 10 Mar 1996 19:32:54 GMT
- Organization: Internet Software Consortium
- Message-ID: <4hvap6$8g1@the-fly.zip.com.au>
- References: <4hlqve$26t@dub-news-svc-6.compuserve.com> <Dnx1Bu.pp@research.att.com>
- NNTP-Posting-Host: zipper.zip.com.au
- X-Newsreader: TIN [version 1.2 PL2]
-
- Andrew Koenig (ark@research.att.com) wrote:
- : In article <4hlqve$26t@dub-news-svc-6.compuserve.com> <102627.3053@compuserve.com> writes:
-
- : > IM TRYING TO CREATE A FUNCTION THAT WILL:
- : > 1.) RAISE A NUMBER TO A POWER BOTH POSITIVE AND NEGATIVE.
- : > ALSO 0 TO ANY POWER WOULD REPORT 0 AND THAT ANY NUMBER TO
- : > THE 0 POWER IS ONE.
- : > 2.) DO THE SAME USING A RECURSIVE FUNCTION.
-
- : Asking someone else to do your homework for you
- : is usually considered plagiarism; when I was in
- : school, it was cause for expulsion.
-
- You're so untrusting....
-
- (defun power (x y)
- (expt x y))
-
- Wait a minute... where am I? Opps. Sorry, wrong newsgroup....
-
- (I suppose I should include a... :-)
-
- James
- --
- James Brister brister@vix.com
- The Internet Software Consortium
-